package my.test.memento.source;

/**
 * @Author 许玉康
 * @Date 2019/9/29 12:38
 * 备忘录
 */
public class Memento {
    //男孩的状态
    private String state = "";

    //通过构造函数传递状态信息
    public Memento(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
